package ooday02;
//继承演示
public class ExtendsTest {
    public static void main(String[] args) {

        Doctor zs=new Doctor("张三",25,"河南","1000");
        zs.eat();
        zs.cut();
        zs.sayHi();
        zs.sleep();
        Student ww = new Student("王五",65,"上海","sdj02020202","011");
        ww.sayHi();
        ww.sleep();
        ww.study();
        ww.eat();





            Teacher ls =new Teacher("李四",25,"河北","200");
        ls.teach();
        ls.eat();
        ls.sleep();
        ls.sayHi();


    }
}
